//
// Created by tys on 2017/9/5.
//

#include "common.h"
#include<android/log.h>
#include <fmod_errors.h>


#define LOG_I(FORMAT, ...) ((void)__android_log_print(ANDROID_LOG_INFO, "fmod", FORMAT, __VA_ARGS__))
#define LOG_E(FORMAT, ...) ((void)__android_log_print(ANDROID_LOG_ERROR, "fmod", FORMAT, __VA_ARGS__))
int ERRCHECK_fun(FMOD_RESULT result, const char *file, int line){
    if(result != FMOD_OK){
        LOG_E("result:%s, %s, %d", FMOD_ErrorString(result), file, line);
        return 0;
    }else{
        return 1;
    }

}